package com.example.demo5072.pojo;

import lombok.Data;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Date;


/**
 * @author lzh
 * @date 2019/7/30 - 16:00
 */
@Document(collection = "c_app")
@Data
public class App {

    @Id
    private ObjectId  _id;

    @Field("uid")
    private double uid;

    @Field("name")
    private String name;

    @Field("age")
    private double age;

    @Field("date")
    private Date date;

}
